import request from '@/utils/request'

export function findOrder(data) {
    return request({
        url:'v1/order/find',
        method:'post',
        data
    })
}

export function getOrderInfo(data) {
    return request({
        url:'v1/find/order/by/id',
        method:'post',
        data
    })
}

export function orderDelivery(data) {
    return request({
        url:'v1/order/delivery',
        method:'post',
        data
    })
}

// 订单支付
export function orderPayment(data) {
    return request({
        url:'v1/order/pay/update',
        method:'post',
        data
    })
}

// 订单改价
export function orderChangePrice(data) {
    return request({
        url:'v1/order/update/total/price',
        method:'post',
        data
    })
}

// 订单改变状态
export function orderChangeStatus(data) {
    return request({
        url:'v1/order/update/status',
        method:'post',
        data
    })
}
  